#include<iostream>
using namespace std;

int main(){
	string s;
	cin>>s;
	
	int count = 0;
	bool flag = false;
	for(int i = 0; i < s.length(); i++){
		if(s[i] == '(') count++;
		else if(s[i] == ')' && count > 0) count--;
		else{
			flag = true;
			break;
		}
	}
	if(flag == true) cout<<"no"<<endl;
	else cout<<"yes"<<endl;
	return 0;
}
